package org.dfzt.modules.online.cgform.model;

public class OnlForeignKey {
    private String field;

    public void setField(String field) {
        this.field = field;
    }

    private String table;
    private String key;

    public void setTable(String table) {
        this.table = table;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof OnlForeignKey)) return false;
        OnlForeignKey d1 = (OnlForeignKey) o;
        if (!d1.a(this)) return false;
        String str1 = getField(), str2 = d1.getField();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false;
        String str3 = getTable(), str4 = d1.getTable();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false;
        String str5 = getKey(), str6 = d1.getKey();
        return !((str5 == null) ? (str6 != null) : !str5.equals(str6));
    }

    protected boolean a(Object paramObject) {
        return paramObject instanceof OnlForeignKey;
    }


    public String toString() {
        return "OnlForeignKey(field=" + getField() + ", table=" + getTable() + ", key=" + getKey() + ")";
    }


    public String getField() {
        return this.field;
    }


    public String getTable() {
        return this.table;
    }


    public String getKey() {
        return this.key;
    }


    public OnlForeignKey() {
    }

    public OnlForeignKey(String paramString1, String paramString2) {
        this.key = paramString2;
        this.field = paramString1;
    }
}
